﻿using UnityEngine;
using System.Collections;
using System.IO;
using System;
public class NetMsgBase : MsgBase
{
    byte[] buffer;

    /* public NetMsgBase(ushort msgId) : base(msgId)
     {

     }*/

    public NetMsgBase(byte[] arr) : base(BitConverter.ToUInt16(arr, 4))
    {
        buffer = arr;
        this.msgId = BitConverter.ToUInt16(arr, 4);
    }

    public byte[] GetNetBytes()
    {
        return buffer;
    }
}
